/*
 * @Description:
 * @Author: Junhuang
 * @Date: 2022-02-08 11:04:34
 * @LastEditTime: 2022-07-13 13:59:19
 * @LastEditors: Junhuang
 * @Reference:
 */
'use strict';

/** @type Egg.EggPlugin */
module.exports = {
  // had enabled by egg
  // static: {
  //   enable: true,
  // }

  // 跨域访问
  cors: {
    enable: true,
    package: 'egg-cors',
  },

  // 数据库配置
  sequelize: {
    enable: true,
    package: 'egg-sequelize',
  },

  // 参数验证
  valparams: {
    enable: true,
    package: 'egg-valparams',
  },

  // jwt token
  wt: {
    enable: true,
    package: 'egg-jwt',
  },

  // egg-redis
  redis: {
    enable: true,
    package: 'egg-redis',
  },

  // nunjucks
  nunjucks: {
    enable: true,
    package: 'egg-view-nunjucks',
  },

  // egg-socket.io
  io: {
    enable: true,
    package: 'egg-socket.io',
  },
};
